const { Schema, model } = require('mongoose')

const typesSchema = new Schema({
    name: String,
    //分类描述
    brief: {
        type: String,
        default: '',
    },
    //分类封面
    typeMap: {
        type: String,
        default: '',
    },
    //分类封面
    typeDetails: {
        type: String,
        default: '',
    },
    //是否可删除
    isDel: {
        type: Boolean,
        default: false
    },
}, { versionKey: false });
module.exports.typesModel = model('typesModel', typesSchema, 'types');